package com.dingzhen.entity;

import java.util.List;

public class Page<T> {
    private long totalElements;
    private List<T> content;
    private int pageNum;
    private int pageSize;
    private int totalPage;

    public Page(List<T> content, int pageNum, int pageSize, long totalElements) {
        this.content= content;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalElements = totalElements;
    }

    public long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(int totalElements) {
        this.totalElements = totalElements;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}